#include<stdio.h>
char encrypt(char c)
{
	char s;
	if(c>='a')
		s=(c+23-'a')%26+'a'-32;
	else
		s=(c+23-'A')%26+'A'+32;
	return s;
}
int main()
{
	int i=50,j=0;
	char s[50],c[50];
	gets(s);
	while(s[i]!='\0')	i--;
	do
	{
		i--;
		c[j]=encrypt(s[i]);
		j++;
	}while(i>=0);
	c[j-1]='\0';
	puts(c);
	return 0;
}
